public class AddItemController {

    public AddItemController(ApexPages.StandardController controller) {

    }


	public String SelectedField_1 {get;set;}
	public String SelectedField_2 {get;set;}
	public String SelectedField_3 {get;set;}
	public String SelectedField_4 {get;set;}
	public String SelectedField_5 {get;set;}
	
	public String SelectedOperator_1 {get;set;}
	public String SelectedOperator_2 {get;set;}
	public String SelectedOperator_3 {get;set;}
	public String SelectedOperator_4 {get;set;}
	public String SelectedOperator_5 {get;set;}
	
	public String GiftOperator_1 {get;set;}
	public String GiftOperator_2 {get;set;}
	public String GiftOperator_3 {get;set;}
	public String GiftOperator_4 {get;set;}
	public String GiftOperator_5 {get;set;}
	
	List<Item__c> itemList = new List<Item__c>();
	public String SearchValue{get;}
	public Boolean RenderFlag {get;set;}
	private List<String> fields = new List<String>();
	private List<String> Quantities = new List<String>();
	public void setSearchValue(String str){
		Quantities.add(str);
	}
	
	public void cmdLinkSet(){
		RenderFlag = true;
	}
	public void cmdLinkSetLess(){
		RenderFlag = false;
	}
	public void resetFilters(){
		SelectedField_1 = 'None';
		SelectedField_2 = 'None';
		SelectedField_3 = 'None';
		SelectedField_4 = 'None';
		SelectedField_5 = 'None';
		SelectedOperator_1 = 'None';
		SelectedOperator_2 = 'None';
		SelectedOperator_3 = 'None';
		SelectedOperator_4 = 'None';
		SelectedOperator_5 = 'None';
		GiftOperator_1 = 'None';
		GiftOperator_2 = 'None';
		GiftOperator_3 = 'None';
		GiftOperator_4 = 'None';
		GiftOperator_5 = 'None';
		
	}
	public List<SelectOption> getFields(){
		List<SelectOption> options = new List<SelectOption>();
		options.add(new SelectOption('None','-None-'));
		options.add(new SelectOption('Category','Category'));
		options.add(new SelectOption('Gift Item','Gift Item'));
		options.add(new SelectOption('Item Description','Item Description'));
		options.add(new SelectOption('Item Type','Item Type'));
		options.add(new SelectOption('Status','Status'));
		options.add(new SelectOption('Unit Cost','Unit Cost'));
		return options;
	}
	
	public List<SelectOption> getOperators(){
		List<SelectOption> options = new List<SelectOption>();
		options.add(new SelectOption('None','-None-'));
		options.add(new SelectOption('equals','equals'));
		options.add(new SelectOption('not equals','not equals'));
		options.add(new SelectOption('less than','less than'));
		options.add(new SelectOption('greater than','greater than'));
		options.add(new SelectOption('less or equal','less or equal'));
		options.add(new SelectOption('greater or equal','greater or equal'));
		options.add(new SelectOption('contains','contains'));
		options.add(new SelectOption('does not contains','does not contains'));
		options.add(new SelectOption('starts with','starts with'));
		return options;
	}
	public void addItems(){
		System.debug('*****************'+SelectedField_1);
		System.debug('*****************'+SelectedField_2);
		
	}
	public void search(){
		for(Integer i=0; i<Quantities.size(); i++)
			System.debug('************'+Quantities.get(i));
	}
	/*public List<Item__c> generateItemList(){
		Set<Id> itemIDS = new Set<Id>();
		Id curOrder = ApexPages.currentPage().getParameters().get('id');
		Order_Detail__c[] orderDetail = [Select Id,Item__c from Order_Detail__c where Order__c =:curOrder];
		for(Integer i=0; i<orderDetail.size(); i++){
			itemIDs.add(orderDetail[i].Item__c);
		}
		Item__c items = [select Name from Item__c where Id Not In:itemIDs];
		
		
	}*/
	
}